package com.zmn.plat.services.interfaces.supplier;

import java.util.List;

import org.springframework.stereotype.Service;

import com.zmn.common.dto.VtDTO;
import com.zmn.plat.model.entity.supplier.SupplierCompanyMap;

/**
 * 类描述： ScmSupplierCompanyMapService
 *
 * @author DaiZhichao
 * @since 2018/10/26 12:44
 */
@Service
public interface ScmSupplierCompanyMapService {

    /**
     * 描述: 根据 supplierId 查询列表
     *
     * @param supplierId
     *            Integer
     * @return SupplierCompanyMap
     * @author DaiZhichao
     * @since 2018/12/13 14:13
     */
    List<SupplierCompanyMap> listBySupplierId(Integer supplierId);

    /**
     * 描述: 根据 companyId 查询列表
     *
     * @param companyId
     *            Integer
     * @return SupplierCompanyMap
     * @author DaiZhichao
     * @since 2018/12/13 14:13
     */
    List<SupplierCompanyMap> listByCompanyId(Integer companyId);

    /**
     * 描述: 根据 companyId 查询供应商简单列表
     *
     * @param companyId
     *            Integer
     * @return List<VtDTO>
     * @author DaiZhichao
     * @since 2018/12/13 14:13
     */
    List<VtDTO> getSupplierSimpleList(Integer companyId);

    /**
     * 描述: 批量单条数据
     *
     * @param supplierId
     *            Integer
     * @return Integer
     * @author DaiZhichao
     * @since 2018/12/13 14:13
     */
    Integer deleteBySupplierId(Integer supplierId);

    /**
     * 描述: 批量单条数据
     *
     * @param companyId
     *            Integer
     * @return Integer
     * @author DaiZhichao
     * @since 2018/12/13 14:13
     */
    Integer deleteByCompanyId(Integer companyId);

    /**
     * 描述: 批量新增数据
     *
     * @param mapList
     *            List<SupplierCompanyMap>
     * @return Integer
     * @author DaiZhichao
     * @since 2018/12/13 14:13
     */
    Integer insertBatch(List<SupplierCompanyMap> mapList);

}
